//
//  MusicCD01Widget.swift
//  TimMusic
//
//  Created by nkl on 2024/10/17.
//

import Foundation
import SwiftUI

struct Small_MusicCD01_01: View {
    var model: ControlMusicModel
    var body: some View {
        ZStack {
            if let data = model.imageData, let uiImage = UIImage(data: data), !model.isStatic {
                Image(uiImage: uiImage).resizable()
                    .resizable().blur(radius: 10).ignoresSafeArea()
            } else {
                Image("ic_small_placeholder").resizable()
                    .resizable().blur(radius: 10).ignoresSafeArea()
            }
            MusicCDWidget(hasArrow: true, bgColor: .clear, model: model)
        }
    }
}
